package org.cocos2d.cocoa
{
	public class CCSize  extends CCObject
	{
		public var width : Number;
		public var height : Number;
		
		public function CCSize(width : Number = 0.0, height : Number = 0.0)
		{
			setSize(width, height);
		}
		
		public function setSize(width : Number, height : Number) : void
		{
			this.width = width;
			this.height = height;
		}
		
		public override function copyWithZone(pZone : CCZone) : CCObject
		{
			var pRet : CCSize = new CCSize();
			pRet.setSize(this.width, this.height);
			return pRet;
		}
		
		public static function CCSizeEqualToSize(size1 : CCSize, size2 : CCSize) : Boolean
		{
			return ((size1.width == size2.width) && (size1.height == size2.height));
		}
		
		public static function get Zero() : CCSize
		{
			return new CCSize(0.0, 0.0);
		}
	}
}